<!--# layout("/common/layout.html",{"jsBase":"/js/${target.urlBase}/${entity.code}/"}){ -->

<form class="layui-form layui-form-pane" id="updateForm">
	@ var list = entity.generalList;
	@ var size = list.~size; /*一行显示俩个，生成后在根据显示要求调整*/
	@ for(var i=0;i<size;i++){
	@ var item0=list[i];
	@ var item1=(size-i==1)?null:list[i+1];
	@ i=i+1;
	@ var array = [item0,item1];
	<div class="layui-row">
		<div class="layui-form-item">
		@for(item in array){
		@if(item==null){continue;}
			<div class="layui-inline">
			<label class="layui-form-label">${item.displayName}</label>
			<div class="layui-input-inline">
				<input type="text" name="${item.name}"  value="\${${entity.code}.${item.name}}"
					 class="layui-input" >
			</div>
			</div>
		@}
		</div>
	</div>
	@}
	<input type="hidden" name="${entity.idAttribute.name}" value=\${${entity.code}.${entity.idAttribute.name}} />
	
	<layui:submitButtons id="updateButton" />
</form>
<!--#} -->
<script>
layui.use(['edit'], function(){
	var ${entity.code}Edit = layui.edit
	${entity.code}Edit.init();
});
</script>
